package day1224;

import java.util.Arrays;

public class Test8 {
    public static void main(String[] args) {
        /*int i=1;
        while(i<=10){//1
            if(i==2){
                continue;
            }
            System.out.println(i);
            i++;
        }*/

        /*for(int i=1;  i<=10; i++){//1  //2   //2   //2     2
            if(i==2){
                continue;
            }
            System.out.println(i);//1   2   2   2    2
        }*/
        /*String[]   ss={"AB" , "BB", "AC" };
        String[]   st=Arrays.copyOf(ss, 4);
        System.out.println(Arrays.toString(st));*/

        //1.
        int rs=addTwoNum(4 ,  7);
        System.out.println(rs);

        //2.  文件名.addTwoNum(参数值)
        int rs2=Test8.addTwoNum(6,9);
        System.out.println(rs2);

        //3.
        Test8  t=new Test8();
        int rs3=t.addTwoNum(7,3);
        System.out.println(rs3);

    }

    static int addTwoNum(int i,   int j) {
        int result= i+j;
        return result;
    }
}
